package com.jxmobi.car.core.repository;

import com.jxmobi.car.core.model.CarModel;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author fei <a href="mailto:xchen@jxmobi.com">Email the author</a>
 * @version 1.0 7/28/16
 */
public interface CarModelRepository extends JpaRepository<CarModel, String> {
    /**
     *  get the car by the model
     * @param model
     * @return
     */
    CarModel findByModel(String model);
}
